﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" th:href="@{/css/style.css}">
<script type="text/javascript" th:src="@{/js/jquery-1.8.3.min.js}"></script>
</head>
<body>
<div class="main">
	<div class="optitle clearfix">
		<div class="title">账单管理&gt;&gt;</div>
	</div>
	<form id="form1" name="form1" method="post" th:action="@{/bill/add}" >
		<div class="content">
			<input  type="hidden" id="userId"  name="userId" th:value="${session.uName.getUserId()}"/>
			<table class="box">
				<p th:text="${message}" style="color: red"></p>
			   <tr>
					<td class="field">商品名称：</td>
					<td><input type="text" name="productName" class="text" id="productName"  /> <font color="red">*</font><font color="red" id="productName_span"></font></td>
				</tr>
				 <tr>
					<td class="field">商品单位：</td>
					<td><input type="text" name="productUnit" class="text" id="productUnit" /> <font color="red">*</font><font color="red" id="productUnit_span"></font></td>
				</tr>
				<tr>
					<td class="field">商品数量：</td>
					<td><input type="text" name="productCount" class="text" id="productCount" /> <font color="red">*</font><font color="red" id="productCount_span"></font></td>
				</tr>
				<tr>
					<td class="field">总额：</td>
					<td><input name="billMoney" id="billMoney" class="text" /><font color="red">*</font><font color="red" id="billMoney_span"></font></td>
				</tr>
			   <tr>
					<td class="field">供应商：</td>
					<td>
						<select name="proId" id="proId">
								<option  th:each="provider:${providers}" th:value="${provider.proId}">[[${provider.proName }]]</option>
						</select>
						<font color="red">*</font><font color="red" id="proId_span"></font>
					</td>
				</tr>
				 <tr>
					<td class="field">是否付款：</td>
					<td><input type="radio" name="payed"  value="1" />是<input type="radio" name="payed"  checked value="0" />否</td>
				</tr>
			</table>
		</div>
		<div class="buttons">
			<input type="submit" name="add" id="add" value="保存" class="input-button" />
			<input type="button" name="button" id="button" onclick="history.back(-1)" value="返回" class="input-button"/> 
		</div>

	</form>
</div>
</body>
</html>
